/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package dao.base;

import org.hibernate.criterion.Example.PropertySelector;
import org.hibernate.type.Type;

class NullStringSelector implements PropertySelector {
	private static final long serialVersionUID = 1L;

	public boolean include(Object propertyValue, String arg1, Type arg2) {
		if (propertyValue == null) {
			return false;
		}

		if (propertyValue instanceof String) {
			return (((String) propertyValue).length() != 0);
		}

		return true;
	}
}